package com.smallkingson.ylib.view.adapter;

import android.support.v4.view.ViewPager;
import android.view.View;

import java.util.List;

public class YSimplePagerAdapter extends YPagerAdapter {

	public YSimplePagerAdapter(ViewPager pager, List<? extends View> views) { 
		super(pager);

		this.views = views;
	}

	List<? extends View> views;

	@Override
	public View getView(int position) {
		return views.get(position);
	}

	@Override
	public int getCount() {
		return views.size();
	}

}
